package com.xuan.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author Lenovo
 * @description: TODO 用户信息实体类
 * @date 2021/7/22 16:38
 */
@TableName("user")
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    private Integer status;

    private String role;

    @TableField(exist = false)
    private List<String> roles;

    @TableLogic(value = "1",delval = "0")
    private Integer del;
}
